$iconUrl = '/docs-next'

.demo {
  font-family: sans-serif;
  border: 1px solid #eee;
  border-radius: 2px;
  padding: 20px 30px;
  margin-top: 1em;
  margin-bottom: 40px;
  user-select: none;
  overflow-x: auto;
}

.custom-block {
  padding: 0.1rem 1.5rem;
  margin: 2em 0;
  border-left-width: 0.5rem;
  border-left-style: solid;
  position: relative;
  border-bottom-right-radius: 2px;
  border-top-right-radius: 2px;
  margin: 1rem 0;

  &::before {
    position: absolute;
    top: 19px;
    left: -14px;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    text-align: center;
    line-height: 20px;
    font-weight: bold;
    font-family: 'Dosis', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
  }

  p {
    color: #222;
  }

  .custom-block-title {
    font-weight: 600;
    margin-bottom: -0.4rem;
  }

  &.info {
    border-color: #007bff;
    background-color: #f8f8f8;

    &::before {
      content: url($iconUrl + '/images/icons/info.svg');
      width: 25px;
      height: 25px;
      left: -16px;
      box-sizing: border-box;
    }
  }

  &.tip {
    border-color: #42b983;
    background-color: #f8f8f8;

    &::before {
      content: url($iconUrl + '/images/icons/bulb.svg');
      width: 25px;
      height: 25px;
      left: -16px;
    }
  }

  &.warning {
    border-color: #f4cd00;
    background-color: #f8f8f8;

    .custom-block-title {
      color: #222;
    }

    &::before {
      content: url($iconUrl + '/images/icons/danger.svg');
      width: 25px;
      height: 25px;
      left: -16px;
      box-sizing: border-box;
    }
  }

  &.danger {
    border-color: #f66;
    background-color: #f8f8f8;

    .custom-block-title {
      color: #222;
    }

    &::before {
      content: url($iconUrl + '/images/icons/stop.svg');
      width: 25px;
      height: 25px;
      left: -16px;
    }
  }

  &.details {
    display: block;
    position: relative;
    border-radius: 2px;
    margin: 1.6em 0;
    padding: 1.6em;
    background-color: #eee;
    h4 {
      margin-top: 0;
    }
    figure,
    p {
      &:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
      }
    }
    summary {
      outline: none;
      cursor: pointer;
    }
  }
}

.sidebar-group.is-sub-group > .sidebar-heading:not(.clickable) {
  font-size: inherit;
  cursor: pointer!important;
  font-weight: bold;
  opacity: 1!important;
}

.dropdown-wrapper .nav-dropdown .dropdown-item h4 {
  margin-bottom: 0.3rem!important;
}

.page-nav
  svg
    width 1em
    height 1em
    vertical-align -0.15em
    fill currentColor
    // fill #cfd4db
    overflow hidden

body
  &::-webkit-scrollbar
    /* 滚动条整体样式 */
    width: 12px; /* 定义纵向滚动条宽度 */
    height: 12px; /* 定义横向滚动条高度 */

  &::-webkit-scrollbar-thumb
    /* 滚动条内部滑块 */
    opacity 0
    border-radius: 6px;
    background-color rgba(144, 147, 153, 0.3)

  &::-webkit-scrollbar-thumb:hover
    /* 鼠标悬停滚动条内部滑块 */
    background: #bbb;

  &::-webkit-scrollbar-track
    /* 滚动条内部轨道 */
    background: #ededed;

.re-part
  // cursor: pointer;
  transition: box-shadow .3s;
  border: 1px solid #ebebeb;
  padding: 24px;
  position: relative;
  z-index: 1;
  &:hover
    box-shadow: 0 0 8px 0 rgba(232,237,250,.6),
    0 2px 4px 0 rgba(232,237,250,.5);

.theme-default-content button
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  border: 1px solid #dcdfe6;
  color: #606266;
  -webkit-appearance: none;
  text-align: center;
  box-sizing: border-box;
  outline: none;
  margin: 0;
  transition: .1s;
  font-weight: 500;
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 4px;
  &:hover, &:focus
    color: #409eff;
    border-color: #c6e2ff;
    background-color: #ecf5ff;
  &:active
    color: #3a8ee6;
    border-color: #3a8ee6;
    outline: none;

.theme-default-content input
  // cursor: pointer;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: none;
  border-radius: 4px;
  border: 1px solid #dcdfe6;
  box-sizing: border-box;
  color: #606266;
  display: inline-block;
  font-size: inherit;
  height: 40px;
  line-height: 40px;
  outline: none;
  padding: 0 15px;
  transition: border-color .2s cubic-bezier(.645,.045,.355,1);
  min-width 180px
  &:hover
    border-color: #c0c4cc;
  &:focus
    outline: none;
    border-color: #409eff;